-- GENERATED SPELL FOR [Scarlet Fleet Defender] --


function spell0_28834(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(52566,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28834', 600, 1)
end

function Sorts_28834(pUnit, Event)
local choix_sorts_28834 = math.random(0, 0)
if choix_sorts_28834 == 0 then
pUnit:RegisterEvent('spell0_28834', 1, 1)
end
end

function mob28834_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28834', math.random(1500, 3000), 1)
end

function mob28834_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28834_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28834_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28834, 1, 'mob28834_Action')
RegisterUnitEvent(28834, 2, 'mob28834_Leave')
RegisterUnitEvent(28834, 3, 'mob28834_Kill')
RegisterUnitEvent(28834, 4, 'mob28834_Die')
